package com.example.service.impl;

import com.example.domain.Goods;
import com.example.mapper.GoodsMapper;
import com.example.service.GoodService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GoodServiceImpl implements GoodService {
    @Autowired
    private GoodsMapper goodsMapper;

    @Override
    public List<Goods> listGoods() {
        return goodsMapper.selectAll();
    }
}
